package Cafezam;

import java.util.Scanner;

public class J02Sungjuk {
	public static void main(String[] args) {
		// 변수선언
		// 성적처리
		// 계산 출력

		int kor;
		int mat;
		int eng;
		int tot;
		String name;
		double avg;
		Scanner sc;
		sc = new Scanner(System.in);
		// 이름 입력받음
		

		System.out.println("이름을 입력하세요");
		name = sc.next();
		System.out.println(name);

		System.out.println("국어성적 입력하세요");
		kor = sc.nextInt();
		System.out.println(kor);

		System.out.println("수학성적 입력하세요");
		mat = sc.nextInt();
		System.out.println(mat);

		System.out.println("영어성적 입력하세요");
		eng = sc.nextInt();
		System.out.println(eng);
		sc.close();

		tot = kor + mat + eng;
		System.out.println("총점");
		System.out.println(tot);
		avg = (double) tot / 3.0;
		System.out.println("평균");
		System.out.println(avg);

	}

}
